package com.example.springdemo.entity;

/**
 * address对象 address
 * 
 * @author ruoyi
 * @date 2025-05-06
 */
public class Address extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long addressid;

    /** 用户ID */
    private Long userid;

    /** 收件人 */

    private String receivename;

    /** 电话 */

    private String phone;

    /** 地址 */

    private String receiveaddress;

    /** 默认 */

    private Long defaultstate;

    public void setAddressid(Long addressid) 
    {
        this.addressid = addressid;
    }

    public Long getAddressid() 
    {
        return addressid;
    }
    public void setUserid(Long userid) 
    {
        this.userid = userid;
    }

    public Long getUserid() 
    {
        return userid;
    }
    public void setReceivename(String receivename) 
    {
        this.receivename = receivename;
    }

    public String getReceivename() 
    {
        return receivename;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setReceiveaddress(String receiveaddress) 
    {
        this.receiveaddress = receiveaddress;
    }

    public String getReceiveaddress() 
    {
        return receiveaddress;
    }
    public void setDefaultstate(Long defaultstate) 
    {
        this.defaultstate = defaultstate;
    }

    public Long getDefaultstate() 
    {
        return defaultstate;
    }

//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("addressid", getAddressid())
//            .append("userid", getUserid())
//            .append("receivename", getReceivename())
//            .append("phone", getPhone())
//            .append("receiveaddress", getReceiveaddress())
//            .append("defaultstate", getDefaultstate())
//            .toString();
//    }
}
